package cn.bone.chapter05;


/**
 * 执行程序会抛出 StackOverflowError
 * 默认情况下，count: 11406
 *
 * 设置栈的大小 -Xss256k
 * count: 2462
 */
public class StackErrorTest {

    private static int count = 1;

    public static void main(String[] args){

        System.out.println(count);
        count++;
        main(args);
    }
}
